﻿/**
 * Reboulder - Partial Boulder Dash clone
 * Jesús Sagra, 2014
 * 
 * Reboulder, main class
 * 
 * Version    Date     Changes
 * -----------------------------------------------------
 *  0.01   07-dic-2014  Initial version, draw player. Move player.
 *  0.02   07-dic-2014  Draw level. Check background collisions.
 *  0.03   08-dic-2014  Draw items. Draw rocks.
 *  0.04   08-dic-2014  IntroScreen. Start/Exit game.
 *  0.05   08-dic-2014  Draw or hide sand. Pick item gives points.
 *  0.06   11-dic-2014  Score bar. Player death.
 */

class Reboulder
{
    static void Main(string[] args)
    {
        Reboulder game = new Reboulder();
        game.Run();
    }


    public void Run()
    {
        bool fullScreen = false;
        SdlHardware.Init(1024, 768, 24, fullScreen);

        while (true)
        {
            IntroScreen intro = new IntroScreen();
            Game myGame = new Game();
            HiScoresScreen hiScores = new HiScoresScreen();

            intro.Run();
            myGame.Run();
            hiScores.Run();
        }
    }
}